package bc.swim2.ejb.session;

import java.util.List;

import javax.ejb.Remote;

import bc.swim2.ejb.entity.Ability;
import bc.swim2.ejb.entity.RegisteredUser;

@Remote
public interface UserManagerBeanRemote {
	public RegisteredUser validateLogin(String username, String password);

	public RegisteredUser getUserById(int userId);

	public void declareAbility(RegisteredUser ru, Ability a);

	public List<RegisteredUser> getUsersByAbilityIdAllOrFriends(int abilityId);

	public void removeAbility(int id, int abilityId);

	public List<RegisteredUser> getUsersByPattern(String name);
}
